package com.xiaomiMall.mange.service;

import com.xiaomiMall.mange.domain.XiaoMiProd;
import com.xiaomiMall.mange.domain.XiaoMiProdDetail;
import com.xiaomiMall.mange.domain.vo.Order;
import com.xiaomiMall.mange.domain.vo.XiaoMiProdOrderVo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author codefish
 * @date 2021/11/2
 * @apinote
 */
//2021年11月14日09:31:51
public interface XiaoMiProdService {
    List<XiaoMiProd> getProdList(XiaoMiProd xiaoMiProd);

    List<XiaoMiProdDetail> getProdDetailList(XiaoMiProd xiaoMiProd);

    boolean uploadProdPicture(String prodPicture, String prodId);

    List getProdColor(String uid, String prodId);


    Integer addProduct(XiaoMiProd xiaoMiProd);

    boolean addProductDetail(List<XiaoMiProdDetail> xiaoMiProdDetailList);

    boolean updateProduct(XiaoMiProd xiaoMiProd, List<XiaoMiProdDetail> xiaoMiProdDetailList);

    boolean changeProdStatus(String prodId, String status);

    List<XiaoMiProd> exportProduct(List<String> prodIds);

    List<XiaoMiProdOrderVo> getOrderData(Order prodOrder);

    List<HashMap<String, String>>  getOrderSalesInfo();
}
